import './assets/main.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'        // 导入 element-plus 组件库
import 'element-plus/dist/index.css'        // 导入 element-plus 组件库样式
import * as Icons from '@element-plus/icons-vue' // 导入 element-plus 组件库图标


import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
for(const [key, component] of Object.entries(Icons)) {
    app.component(key, component)
}

app.mount('#app')
